package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.StaffStationChange;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmy.cultivate.entity.views.PersonManage;
import com.xmy.cultivate.util.Result;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 岗位调动 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-02-01
 */
public interface IStaffStationChangeService extends IService<StaffStationChange> {

    Result stationChange(PersonManage personManage);

    @Transactional
    Result staffStationLeave(PersonManage personManage);

    String getStationNameForId(Long id);

    IPage<StaffStationChange> getTransferList(IPage<?> page, Wrapper wrapper);
}
